package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.Entrance;

import java.util.List;

public interface EntranceManager {

    Entrance getEntranceById(DataSourceKey key, Long id);

    List<Entrance> getEntrances(DataSourceKey key);

    List<Entrance> getComms(DataSourceKey key, String typename);

    Entrance saveEntrance(DataSourceKey key, Entrance entrance);

    void deleteEntrance(DataSourceKey key, Long id);

    Entrance getEntranceByUrl(DataSourceKey key, String url);
}
